package cn.yr.system.mapper;


import cn.yr.common.core.domain.entity.SysRole;
import cn.yr.common.core.domain.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @title UserMapper
* @description 用户
* @author Lang 1102076808@qq.com
* @date 2020/6/20 8:17
*/
@Mapper
public interface LoginMapper extends BaseMapper<SysUser> {

	/**
	 * @description 根据用户名，查询系统用户
	 * @author Lang
	 * @date 2020/6/20 8:19
	 */
	SysUser queryByUsername(String username);

	/**
	 * @description 根据用户id获取角色列表
	 * @author Lang
	 * @date 2020/7/18 11:42
	 */
	List<SysRole> listRole(Long userId);

	/**
	 * @description 根据用户名，查询系统用户
	 * @author Lang
	 * @date 2020/6/20 8:19
	 */
	SysUser queryByUuid(String uuid);

}
